<h2 class="h2-title">Quản trị nội dung !!!</h2>

<div class="clear"></div>
<?php if($this->native_session->flashdata('msg')):?>
    <ul class="notification succ">
        <li class="notifi_img"><img src="<?=base_url()?>assets/backend/css/images/icons/tick_circle.png"/></li>

        <li class="msg"><?=$this->native_session->flashdata('msg')?></li>

        <li class="close"><img src="<?=base_url()?>assets/backend/css/images/icons/cross_grey_small.png"/></li>

    </ul><!--End of .notification -->
<?php endif?>

<table class="pretty">
                    <thead>
                        <tr>
                            <th>Tên nội dung</th>
                            <th>Nội dung</th>
                            <th>Ngày tạo</th>
                            <th>Cập nhật</th>
                            <th>Sửa</th>
                            <th>Chi tiết</th>
                        </tr>
                    </thead>

                    <tbody>
                        <?php if(isset($msg)):?>
                            <td colspan="6"><?= $msg ?></td>
                        <?php else:?>
                            <?php foreach($cms as $row_cms):?>
                                <tr>
                                <td><?=$row_cms->name?></td>
                                <td><?=character_limiter($row_cms->content,50)?></td>
                                <td><?=$row_cms->date_created?></td>
                                <td><?=$row_cms->update_time?></td>
                                <td>
                                    <a href="<?=base_url()?>backend/cms/editcms/<?=$row_cms->id?>" class="edit">
                                        <img src="<?=base_url()?>assets/backend/css/images/edit.png"/>
                                    </a>
                                </td>
                                <td>
                                    <a href="<?=base_url()?>backend/cms/editcms/<?=$row_cms->id?>" class="edit">
                                        <img src="<?=base_url()?>assets/backend/css/images/information.png"/>
                                    </a>
                                </td>
                                </tr>
                            <?php endforeach;?>
                        <?php endif;?>
                    </tbody>
                </table>